﻿using DemoPrism.Core;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;
using SqlSugarMod.Views;

namespace SqlSugarMod;
public class SqlSugarModModule : IModule
{
    private readonly IRegionManager _regionManager;

    public SqlSugarModModule(IRegionManager regionManager)
    {
        _regionManager = regionManager;
    }

    public void OnInitialized(IContainerProvider containerProvider)
    {
        _regionManager.RequestNavigate(RegionNames.ContentRegion, "SqlSugarMain");
    }

    public void RegisterTypes(IContainerRegistry containerRegistry)
    {
        containerRegistry.RegisterForNavigation<SqlSugarMain>();
    }
}